#ifndef LOGIN_H
#define LOGIN_H

#include <QObject>
#include "databasequeue.h"

class Login : public QObject
{
    Q_OBJECT
public:

public:
    explicit Login(QObject *parent = nullptr);
    virtual ~Login();
    Login(const Login & a)
    {
        this->id = a.id;
        this->pwd = a.pwd;
    }
    Login& operator= (const Login& a)
    {
        this->id = a.id;
        this->pwd = a.pwd;
        return *this;
    }

    Q_PROPERTY(QString id READ getId)
    Q_PROPERTY(QString pwd READ getPwd)

    QString getId();
    QString getPwd();

public:
    //保存本地登录id
    QString                 id;
    //记住密码
    QString                 pwd;
};

#endif // LOGIN_H
